﻿using UnityEngine;

public class MapEditorBaseData {
	// === Public =====================================================================================================
	public GameObject Camera { get; private set; }
	public ElementCtrl Grid { get; private set; }
	public ElementCtrl TransparentObject { get; private set; }
	public ElementType ModelType { get; private set; }

	public static MapEditorBaseData GetInstance {
		get { return _instance ?? (_instance = new MapEditorBaseData()); }
	}

	public void SetCamera(GameObject camera) {
		Camera = camera;
	}

	public bool HasCamera() {
		return Camera != null;
	}

	public void SetGrid(ElementCtrl grid) {
		Grid = grid;
	}

	public bool HasGrid() {
		return Grid != null;
	}

	public void SetTransparentObject(ElementCtrl transparentObject) {
		TransparentObject = transparentObject;
	}

	public bool HasTransparentObject() {
		return TransparentObject != null;
	}

	public void SetModelType(ElementType elementType) {
		ModelType = elementType;
	}
	
	// === Private ====================================================================================================
	private static MapEditorBaseData _instance;
}
